import http from "./http";
//获取主页文章数据
export const getHomeArticleApi = (params) => http.get("/index/article", params);
//获取主页品牌馆数据
export const getHomeBrandApi = (params) => http.get("/index/brand", params);
//获取列表页数据
export const getListApi = (params) => http.get("/product/list", params);
//获取详情页数据
export const getDetailsApi = (params) => http.get("/product/details", params);
//注册 数据提交
export const submitRegisterApi = (params) =>
  http.post("/users/register", params);
//登录验证数据
export const getLoginApi = (params) => http.post("/users/login", params);
//获取我的页面的数据
export const getMineApi = (params) => http.get("/index/mine", params);
//chat页面数据
export const getchatApi = (params) => http.get("/index/chat", params);
